// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
import routes from './routes.js'
import App from './App'
import moment from 'moment'

/* eslint-disable no-unused-vars */
import IconCss from './common/scss/icon.scss'

Vue.use(VueRouter)
Vue.use(VueResource)

// 过滤器
/* eslint-disable quotes */
Vue.filter("fmtDate", function (time) {
  return moment(time).format("YYYY-MM-DD HH:mm")
})

const router = new VueRouter({
  linkActiveClass: 'active',
  routes: routes
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
